<?php
/**
 * PlaceFixture
 *
 */
class PlaceFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'),
		'name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'key' => 'index', 'collate' => 'utf8_general_ci', 'comment' => 'You can query for place\'s name.', 'charset' => 'utf8'),
		'desc' => array('type' => 'text', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => 'Places description. For future use.', 'charset' => 'utf8'),
		'url' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 120, 'collate' => 'utf8_general_ci', 'comment' => 'Place URL if available.', 'charset' => 'utf8'),
		'limit' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 5, 'key' => 'index', 'comment' => 'You can query for places with some place limit. Default capacity value (to auto-fill form)'),
		'chapter_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'index', 'comment' => 'Chapter information. Can\'t be NULL. Each place must have referenced chapter.'),
		'address_id' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'key' => 'index', 'comment' => 'Address information if available. It will be used for google maps link. It can be null.'),
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'chapter' => array('column' => 'chapter_id', 'unique' => 0), 'address' => array('column' => 'address_id', 'unique' => 0), 'limit' => array('column' => 'limit', 'unique' => 0), 'name' => array('column' => 'name', 'unique' => 0)),
		'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'name' => 'Lorem ipsum dolor sit amet',
			'desc' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'url' => 'Lorem ipsum dolor sit amet',
			'limit' => 1,
			'chapter_id' => 1,
			'address_id' => 1
		),
	);
}
